#include <stdio.h>
int main(){
    FILE *fp=fopen("test.txt","r");
    if (fp==NULL)
    {
        printf("Error opening file\n");
        return 0;
    }else{
        printf("File opened successfully\n");
    }
    
    char value=fgetc(fp);
    while (value!=EOF)
    {
        printf("%c",value);
        value=fgetc(fp);
    }
    
   
    return 0;
}